Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to show additional questions #18

Merged
merged 22 commits into from
Oct 25, 2024
Merged

Conversation

bartjkdp
Copy link
Member

@bartjkdp bartjkdp commented Oct 18, 2024

Todo

  • Inplement support for different field types (CheckboxInput, PlainText, RadioInput, TextInput, TextareaInput)
  • Implement validation (required, maxLength)
  • Use main and sub category from global state
  • Wire up with react-hook-form
  • Save when creating a signal

The ifOneOf and ifAllOf setting is currently "out of scope"

More documentation on additional questions structure can be found here:
https://github.com/Amsterdam/signals-frontend/blob/main/docs/additional-questions.md

Closes #5

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
signalen-frontend-wcag ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 2:38pm

…stions

# Conflicts:
#	src/app/[locale]/incident/add/components/IncidentQuestionsLocationForm.tsx
…o feat/5-additional-questions

# Conflicts:
#	src/components/ui/RadioGroup.tsx
@justiandevs
Copy link
Contributor

I have completed everything required, but there are still a few things that need to be addressed (in other pull requests, to keep this one from becoming too large).

The AssetSelect type question needs to be implemented (#7).
The LocationSelect type question needs to be implemented (#37).
Styling and accessibility are not included in this PR, as it focuses solely on the technical background work. We're waiting for the integration of NL Design System components (#38).
The possibility of a hard stop needs to be added (#36).
Conditional questions need to be implemented (#6).

This PR is best tested with a report for "Vuurwerkoverlast" (fireworks nuisance).

@Robbert
Copy link
Contributor

Robbert commented Oct 24, 2024

@justiandevs Willen we iets van test automatisering toevoegen hier? Met vitest of playwright?

@justiandevs
Copy link
Contributor

@justiandevs Willen we iets van test automatisering toevoegen hier? Met vitest of playwright?

Ik denk het wel. Hier wil ik alleen mee wachten totdat ook sowieso ifOneOf of ifAllOf functionaliteit is ingebouwd, dat zorgt voor de complexere situaties die goed doortest moeten worden, dan bouw ik dat in een keer.

@Robbert Robbert merged commit ea67bc3 into main Oct 25, 2024
3 checks passed
@Robbert Robbert deleted the feat/5-additional-questions branch October 25, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Op basis van de automatische classificatie willen we de juiste vervolgvragen tonen
4 participants